<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
	<link rel="stylesheet" type="text/css" href="css/admin.css" />
	<link rel="stylesheet" type="text/css" href="css/sdmenu.css" />
	<script type="text/javascript" src="js/sdmenu.js">	
	</script>
	<script type="text/javascript">
	// <![CDATA[
	var myMenu;
	window.onload = function() {
		myMenu = new SDMenu("my_menu");
		myMenu.init();
	};
	// ]]>
	</script>
</head>

<body background="images/admin_05.gif">
<div style="float: left" id="my_menu" class="sdmenu">	
	<c:forEach var="menu" items="${result}">
		<div>
			<span><font color="#333333">${menu.name}</font></span>
			<c:forEach var="menu2" items="${menu.list}">
				<c:if test="${menu2.url==''}"><a href="<%=basePath%>admin/system/menuNoRight/menuNoRight!main.action" target="main">${menu2.name}</a></c:if>
				<c:if test="${menu2.url!=''}"><a href="${menu2.url}" target="main">${menu2.name}</a></c:if> 
			</c:forEach>
		</div>
	</c:forEach>
</div>
</body>
</html>
